import unittest


class DemoTestCase(unittest.TestCase):
    # setUpClass 所有test运行前会执行一次."大夹子"
    @classmethod
    def setUpClass(cls) -> None:
        print('setUpClass')

    # setUpClasee 所有test运行后会执行一次."大夹子"
    @classmethod
    def tearDownClass(cls) -> None:
        print('tearDownClass')

    # setUp  每个test运行前执行一次. "小夹子"
    def setUp(self) -> None:
        print('setUp')

    # tearDown  每个test运行后执行一次. "小夹子"
    def tearDown(self) -> None:
        print('tearDown')

    def test01(self):
        print('test01')

    def test02(self):
        print('test02')

    def test03(self):
        print('test03')


if __name__ == '__main__':
    unittest.main(verbosity=2)
